package com.dxj.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dxj.domain.Permission;
import com.dxj.request.PermissionDTO;
import com.dxj.response.R;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * @author dxj
 * @Description 权限服务
 * @date 2024/7/29 20:43
 */
public interface IPermissionService extends IService<Permission> {
    /**
     * 通过用户id查询用户权限
     * @param userId
     * @return
     */
    Set<String> getUserPermissionById(@Param("userId") Long userId);
    /**
     * 新增权限
     * @param permissionDTO
     * @return
     */
    R insertPermission(PermissionDTO permissionDTO);
}
